<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
</head>
<body>
<div id="app">
	<counter></counter><br/>
	<counter></counter><br/>
	<counter></counter><br/>
</div>
<template id="tmpl">
	<div>
		<input type="button" value="+1" @click="increment">
		<h3>{{counted}}</h3>
	</div>
</template>
<script src="node_modules/vue/dist/vue.js"></script>
<script>
Vue.component('counter',{
	template:'#tmpl',
	data:function(){
		return {counted:0}
	},
	methods:{
		increment(){
			this.counted++
		}
	}
})
var app = new Vue({
	el:'#app',
	data:{}
})
</script>	
</body>
</html>